﻿using IOP.Net;

namespace IOP.Pulsar.Abstractions
{
    /// <summary>
    /// Socket仓储接口
    /// </summary>
    public interface ISocketPool
    {
        /// <summary>
        /// 出队列
        /// </summary>
        /// <returns></returns>
        SocketMonitor DequeneSocket();
        /// <summary>
        /// 入队列
        /// </summary>
        /// <param name="socket"></param>
        void EnqueueSocket(SocketMonitor socket);
    }
}
